# $Id: PKGBUILD 143883 2011-11-30 13:08:53Z heftig $
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>

pkgname=apricots
pkgver=0.2.6
pkgrel=5
pkgdesc="A simple 2D flying/bombing game similar to basic side scrollers"
arch=("i686" "x86_64")
license=('GPL')
url="http://www.fishies.org.uk/apricots.html"
depends=('gcc-libs' 'openal' 'sdl' 'freealut')
#source=("http://www.fishies.org.uk/$pkgname-$pkgver.tar.gz"
source=("ftp://ftp.archlinux.org/other/apricots/$pkgname-$pkgver.tar.gz"
        "apricots-0.2.6-freealut.patch")
md5sums=('910828d717e46d8cbd9c24f702d09fbc'
         '5f9f74082dfe162ab3ba51f6ec628f99')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p0 -i $srcdir/apricots-0.2.6-freealut.patch
  ./configure --prefix=/usr
  make LIBTOOL='/usr/bin/libtool'
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make prefix=$pkgdir/usr install
}
